package freespiritsocial.io.user.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import freespiritsocial.io.user.R
import freespiritsocial.io.user.data.model.BtnItems
import freespiritsocial.io.user.databinding.ItemBottomBtnBinding
import java.util.*

/**
 * 底部弹出菜单
 */
class BottomBtnAdapter(
    data: ArrayList<BtnItems> = arrayListOf(),
    layoutResIdRes: Int = R.layout.item_bottom_btn
) :
    BaseQuickAdapter<BtnItems,BaseDataBindingHolder<ItemBottomBtnBinding>>(layoutResIdRes, data) {

    override fun convert(holder: BaseDataBindingHolder<ItemBottomBtnBinding>,item: BtnItems) = with(holder.dataBinding) {
        this?.item = item
    }
}